Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 3 - Window Manager Reference / Window Manager Functions
Collapsing Windows /


CollapseWindow

NEW WITH THE APPEARANCE MANAGER

Collapses or expands a window to its title bar .

pascal OSStatus CollapseWindow (
                     WindowPtr inWindow,
                     Boolean inCollapseIt);
inWindow
On input, a pointer to the window that you want to collapse.
inCollapseIt
A Boolean value indicating whether the window should be collapsed or expanded.
function result
A result code; see "Result Codes".
DISCUSSION
The CollapseWindow function tells the Window Manager to collapse or expand a window depending upon the value passed in the inCollapseIt parameter. Only window definition functions that return the feature bit kWindowCanCollapse in response to a kWindowGetFeatures message support this function; see GetWindowFeatures.

SEE ALSO
FindWindow.

"Appearance Manager Gestalt Selector Constants".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998